import { $http } from '@/utils/request.js'

$http.baseUrl = 'http://172.19.10.21:5000'

$http.beforeRequest = function(req) {
	req.header.Authorization = 'Bearer ' + uni.getStorageSync('TOKEN') || ''
}

$http.afterRequest = function() {
}

export default $http